/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package Gestion_article;

/**
 *
 * @author 10069
 */
public class CategorieG extends javax.swing.JFrame {

    /**
     * Creates new form Categorie
     */
    public CategorieG() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();
        jTabbedPaneCategories = new javax.swing.JTabbedPane();
        jPanelCategorie1 = new javax.swing.JPanel();
        jTextFieldRecherchercode = new javax.swing.JTextField();
        jTextFieldRechercherNom = new javax.swing.JTextField();
        jTextFieldAjouterArticle = new javax.swing.JTextField();
        jButtonRechercherNom = new javax.swing.JButton();
        jButtonRechercher = new javax.swing.JButton();
        jButtonAjouter = new javax.swing.JButton();
        jScrollPane1 = new javax.swing.JScrollPane();
        jListarticles = new javax.swing.JList();
        jPanelCategorie2 = new javax.swing.JPanel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jLabel1.setFont(new java.awt.Font("Verdana", 3, 24)); // NOI18N
        jLabel1.setForeground(new java.awt.Color(0, 153, 204));
        jLabel1.setText("Gestion des articles par catégorie");

        jButtonRechercherNom.setBackground(new java.awt.Color(204, 204, 204));
        jButtonRechercherNom.setText("Rechercher par Nom");

        jButtonRechercher.setText("Rechercher par Code Article");

        jButtonAjouter.setText("Ajouter un article a la catégorie");

        jListarticles.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        jScrollPane1.setViewportView(jListarticles);

        javax.swing.GroupLayout jPanelCategorie1Layout = new javax.swing.GroupLayout(jPanelCategorie1);
        jPanelCategorie1.setLayout(jPanelCategorie1Layout);
        jPanelCategorie1Layout.setHorizontalGroup(
            jPanelCategorie1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCategorie1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelCategorie1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(jScrollPane1)
                    .addGroup(jPanelCategorie1Layout.createSequentialGroup()
                        .addGroup(jPanelCategorie1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jTextFieldRecherchercode, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 106, Short.MAX_VALUE)
                            .addComponent(jTextFieldRechercherNom, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jTextFieldAjouterArticle))
                        .addGap(47, 47, 47)
                        .addGroup(jPanelCategorie1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jButtonAjouter, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jButtonRechercher, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jButtonRechercherNom, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
                .addContainerGap(617, Short.MAX_VALUE))
        );
        jPanelCategorie1Layout.setVerticalGroup(
            jPanelCategorie1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCategorie1Layout.createSequentialGroup()
                .addGap(38, 38, 38)
                .addGroup(jPanelCategorie1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextFieldRechercherNom, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButtonRechercherNom))
                .addGap(26, 26, 26)
                .addGroup(jPanelCategorie1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextFieldRecherchercode, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButtonRechercher))
                .addGap(28, 28, 28)
                .addGroup(jPanelCategorie1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextFieldAjouterArticle, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButtonAjouter))
                .addGap(18, 18, 18)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 176, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(22, Short.MAX_VALUE))
        );

        jTabbedPaneCategories.addTab("Categorie 1", jPanelCategorie1);

        javax.swing.GroupLayout jPanelCategorie2Layout = new javax.swing.GroupLayout(jPanelCategorie2);
        jPanelCategorie2.setLayout(jPanelCategorie2Layout);
        jPanelCategorie2Layout.setHorizontalGroup(
            jPanelCategorie2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 963, Short.MAX_VALUE)
        );
        jPanelCategorie2Layout.setVerticalGroup(
            jPanelCategorie2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 377, Short.MAX_VALUE)
        );

        jTabbedPaneCategories.addTab("Categorie 2", jPanelCategorie2);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(225, 225, 225)
                .addComponent(jLabel1)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addComponent(jTabbedPaneCategories)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addGap(0, 15, Short.MAX_VALUE)
                .addComponent(jLabel1)
                .addGap(34, 34, 34)
                .addComponent(jTabbedPaneCategories, javax.swing.GroupLayout.PREFERRED_SIZE, 405, javax.swing.GroupLayout.PREFERRED_SIZE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(CategorieG.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(CategorieG.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(CategorieG.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(CategorieG.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new CategorieG().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButtonAjouter;
    private javax.swing.JButton jButtonRechercher;
    private javax.swing.JButton jButtonRechercherNom;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JList jListarticles;
    private javax.swing.JPanel jPanelCategorie1;
    private javax.swing.JPanel jPanelCategorie2;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JTabbedPane jTabbedPaneCategories;
    private javax.swing.JTextField jTextFieldAjouterArticle;
    private javax.swing.JTextField jTextFieldRechercherNom;
    private javax.swing.JTextField jTextFieldRecherchercode;
    // End of variables declaration//GEN-END:variables
    
   

}

   



